<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var firstNum = prompt('请输入第一个数值')
        var secondNum = prompt('请输入第二个数值')
        var num1 = Number(firstNum) 
        var num2 = Number(secondNum) 
        if(num1 >= num2 ){
            alert('较大的值为' + num1)
        } else{
            alert('较大的值为' + num2)
        }

    </script>
</body>
</html>